/*
 * @Author: XuMeiyi
 * @Date: 2021-10-25 18:40:53
 * @LastEditors: XuMeiyi
 * @LastEditTime: 2021-10-25 18:49:25
 * @Description:
 */
import { get, post } from '@/utils/request'

//查询所有咨询分类
export function findAllCategory(data) {
  return get("/index/findAllCategory", data)
}

//分页查询所有咨询
export function pageQuery(data) {
  return get('/index/pageQueryArticles', data)
}

//通过id查询咨询
export function findById(data) {
  return get('/index/readArticle', data);
}

//给咨询点赞
export function thumbUp(data) {
  return get('/index/thumbUpArticle', data);
}